module.exports = function($scope, $resource, $state){

	console.log('tempcreate');


	$resource('/api/ac/tc/goodsTemplete/jlist', {}, {}).save({}, function(res){
        console.log(res);
        if(res.errcode === 0){
            $scope.arr = res.data;
        }else{
            alert(res.errmsg);
        }
    });



    $scope.create = function(item){
    	$state.go('app.goods_info_create', {'id' : item.id});
    }

};